package com.redstar.HappyRefresh.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@EqualsAndHashCode(callSuper = false)
public class Follow implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long followId; // 关注id

    private Long userId; // 粉丝id

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated; // 开始时间，不需要修改，取关删除即可
}
